package com.conti.service.impl;

import com.conti.entity.Department;
import com.conti.entity.Group;
import com.conti.mapper.prod.DepartmentMapper;
import com.conti.service.DepartmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DepartmentServiceImpl implements DepartmentService {

    @Autowired
    private DepartmentMapper departmentMapper;


    /**
     * 根据empno/line_leader查询产线部门
     * @param empno
     * @return
     */
    @Override
    public List<Department> list(String empno) {
        return departmentMapper.list(empno);
    }

    /**
     * 查询产线group
     * @param empno
     * @return
     */
    @Override
    public List<Group> groupList(String empno) { return departmentMapper.groupList(empno);}
}
